package Lee_code;

import java.util.HashSet;

public class Lee_207 {
    public boolean canFinish(int numCourses, int[][] prerequisites) {
        int class_num = prerequisites.length;

        //记录需要先导课的科目
        HashSet<Integer> hashSet = new HashSet<>();
        //记录学过的课
        HashSet<Integer> learned = new HashSet<>();


        for(int[] i:prerequisites)
        {
            hashSet.add(i[0]);
        }

        for(int[] i:prerequisites)
        {
            if(!hashSet.contains(i[1]))
            {
                learned.add(i[1]);
            }
        }

        return  false;

    }
}
